package com.kxq.zhuoyue.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.kxq.zhuoyue.po.Result;
import com.kxq.zhuoyue.po.TagsGroup;
import com.kxq.zhuoyue.po.commodity;
import com.kxq.zhuoyue.service.TagsGroupService;
import com.kxq.zhuoyue.util.result.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/TagsGroup")
public class TagsGroupController {
    @Autowired
    private TagsGroupService service;
    @GetMapping("/select")
    public AjaxResult select(){
        List<TagsGroup> list = service.list();
        return AjaxResult.success("",list);
    }
    @PutMapping("")
    public AjaxResult update(@PathVariable String tagsGroupId) {
        return AjaxResult.success();

    }
  /*  @PostMapping("/findByLike")
    public Result findByNameLike(@RequestBody TagsGroup tagsGroup){
        QueryWrapper<TagsGroup> queryWrapper = new QueryWrapper<>();
        queryWrapper.like("userName",commodity.getUserName());
        List<TagsGroup> list = service.list(queryWrapper);
        return Result.success(list);
    }*/

}
